package org.csmz.class2333;

public class Example07 {
    public static void main(String[] args){
        /*
        等价于if语句
        if a>b{
        int max =a;
        }else{
        int min =a;
        }
         */
        int a=10;
        int b=20;
        int max = a>b ? a:b;
        int min = a<b ? a:b;

        System.out.println("max="+max);
        System.out.println("min="+min);
        int c =6;
        int d=4;
        int result = c&d;
        System.out.println("result="+result);
    }
}
